package com.vpclub.controller;

import com.vpclub.service.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author : leimingchao
 * @date Date : 2021年08月03日 1:24
 */
@Controller
public class BookController {

    @Autowired
    private BookService bookService;

    public BookController() {
        System.out.println("BookController创建了。。。。");
    }

    @RequestMapping(value = "/hello")
    public String hello() {
        System.out.println(bookService);
        return "forward:/index.jsp";
    }
}
